﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.Interface.Common.Model.Common
{
    /// <summary>
    /// 接口返回给前端的统一格式
    /// </summary>
    public class InterfaceClientResult
    {
        public object @object { get; set; } 
        public int status => success ? 1 : 0;
        public string error { get; set; }
        public string message { get; set; }
        public string errorDetail { get; set; }
        public long count { get; set; }
        public string methodName { get; set; }
        public string interfaceName { get; set; }
        public string serverIp { get; set; }
        public string apiDescription { get; set; }
        public string traceId { get; set; }
        public bool success { get; set; }
    }
    public class InterfaceClientResult<T>: InterfaceClientResult
    {
        public new T @object { get; set; }
    }
}
